package org.onvivals.module.pms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.onvivals.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.onvivals.module.ums.entity.UmsUser;

import java.io.Serial;

@Getter
@Setter
@Accessors(chain = true)
@TableName("pms_question_answer")
@Schema(description = "问答表")
public class PmsQuestionAnswer extends BaseEntity<PmsQuestionAnswer> {

	@Serial
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@Schema(description ="用户uid")
	@TableField("uid")
	private Long uid;

	@Schema(description ="设备号")
	@TableField("device_num")
	private String deviceNum;

	@Schema(description ="问题")
	@TableField("question")
	private String question;

	@Schema(description ="问题url")
	private String questionUrl;

	@Schema(description ="答案")
	@TableField("answer")
	private String answer;

	@Schema(description ="答案url")
	private String answerUrl;

	@Schema(description ="会话ID")
	@TableField("conversation_id")
	private String conversationId;

	@TableField(exist = false)
	private UmsUser member;

}
